package com.gopay.common.cps.dao.cbrmb;

import java.util.List;

import com.gopay.common.base.dao.BaseDAO;
import com.gopay.common.domain.cbrmb.internationalcard.CbRmbIntlCardDishonor;

/**
 * 跨境人民币 外卡拒付辅助表DAO
 * @CbRmbIntlCardDishonorDAO.java
 * @author lailingyu
 * @2017-11-06 下午5:41:04  www.gopay.com.cn Inc.All rights reserved.
 */
public interface CbRmbIntlCardDishonorDAO extends BaseDAO<CbRmbIntlCardDishonor, Long> {

	/**
	 * 根据国付宝订单号查询
	 * @param gopayOrderId
	 * @return
	 */
	public List<CbRmbIntlCardDishonor> findByGopayOrderId(String gopayOrderId);

	/**
	 * 根据国付宝订单号和拒付时间查询
	 * @param gopayOrderId
	 * @param dishonorTime
	 * @return
	 */
	public CbRmbIntlCardDishonor findByGopayOrderIdAndDishonorTime(String gopayOrderId, String dishonorTime);

	
	/**
	 * 根据国付宝订单号和交易类型查询
	 * @param gopayOrderId
	 * @param tranType
	 * @return
	 */
	public List<CbRmbIntlCardDishonor> findByGopayOrderIdAndTranType(String gopayOrderId, String tranType);

	/**
	 * 根据拒付订单号查询
	 * @param dishonorOrderId
	 * @return
	 */
	public CbRmbIntlCardDishonor findByDishonorOrderId(String dishonorOrderId);

}
